mirror of
https://github.com/RoboSats/robosats.git
synced 2025-02-07 13:59:06 +00:00
Fix do not share chat logs on disputes by default
This commit is contained in:
parent
51c5bad5c0
commit
657b88daa4
@ -11,7 +11,7 @@ export interface DisputeForm {
|
|||||||
|
|
||||||
export const defaultDispute: DisputeForm = {
|
export const defaultDispute: DisputeForm = {
|
||||||
statement: '',
|
statement: '',
|
||||||
attachLogs: true,
|
attachLogs: false,
|
||||||
badStatement: '',
|
badStatement: '',
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -308,10 +308,9 @@ const TradeBox = ({ baseUrl, onStartAgain }: TradeBoxProps): JSX.Element => {
|
|||||||
};
|
};
|
||||||
|
|
||||||
const submitStatement = function (): void {
|
const submitStatement = function (): void {
|
||||||
const slot = garage.getSlot();
|
|
||||||
let statement = dispute.statement;
|
let statement = dispute.statement;
|
||||||
if (dispute.attachLogs) {
|
if (dispute.attachLogs) {
|
||||||
const payload = { statement, messages, token: slot?.token };
|
const payload = { statement, messages };
|
||||||
statement = JSON.stringify(payload, null, 2);
|
statement = JSON.stringify(payload, null, 2);
|
||||||
}
|
}
|
||||||
setLoadingButtons({ ...noLoadingButtons, submitStatement: true });
|
setLoadingButtons({ ...noLoadingButtons, submitStatement: true });
|
||||||
|
Loading…
Reference in New Issue
Block a user