Fix do not share chat logs on disputes by default

This commit is contained in:
Reckless_Satoshi 2024-01-13 11:02:06 +00:00
parent 51c5bad5c0
commit 657b88daa4
No known key found for this signature in database
GPG Key ID: 9C4585B561315571
2 changed files with 2 additions and 3 deletions

View File

@ -11,7 +11,7 @@ export interface DisputeForm {
export const defaultDispute: DisputeForm = {
statement: '',
attachLogs: true,
attachLogs: false,
badStatement: '',
};

View File

@ -308,10 +308,9 @@ const TradeBox = ({ baseUrl, onStartAgain }: TradeBoxProps): JSX.Element => {
};
const submitStatement = function (): void {
const slot = garage.getSlot();
let statement = dispute.statement;
if (dispute.attachLogs) {
const payload = { statement, messages, token: slot?.token };
const payload = { statement, messages };
statement = JSON.stringify(payload, null, 2);
}
setLoadingButtons({ ...noLoadingButtons, submitStatement: true });