mirror of
https://github.com/RoboSats/robosats.git
synced 2025-01-31 02:21:35 +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 = {
|
||||
statement: '',
|
||||
attachLogs: true,
|
||||
attachLogs: false,
|
||||
badStatement: '',
|
||||
};
|
||||
|
||||
|
@ -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 });
|
||||
|
Loading…
Reference in New Issue
Block a user