mirror of
https://github.com/RoboSats/robosats.git
synced 2025-07-21 18:23:34 +00:00
Fix swap dispute prompts
This commit is contained in:
@ -15,7 +15,7 @@ const LinearDeterminate = ({ expiresAt, totalSecsExp }: Props): JSX.Element => {
|
|||||||
} else {
|
} else {
|
||||||
return 100;
|
return 100;
|
||||||
}
|
}
|
||||||
}
|
};
|
||||||
|
|
||||||
const [progress, setProgress] = useState<number>(timePercentLeft);
|
const [progress, setProgress] = useState<number>(timePercentLeft);
|
||||||
|
|
||||||
|
@ -603,15 +603,15 @@ const TradeBox = ({
|
|||||||
// 18: 'Taker lost dispute'
|
// 18: 'Taker lost dispute'
|
||||||
} else if ((status == 17 && isMaker) || (status == 18 && !isMaker)) {
|
} else if ((status == 17 && isMaker) || (status == 18 && !isMaker)) {
|
||||||
title = 'You have won the dispute';
|
title = 'You have won the dispute';
|
||||||
prompt = function () {
|
|
||||||
return <DisputeWinnerPrompt />;
|
|
||||||
};
|
|
||||||
} else if ((status == 17 && !isMaker) || (status == 18 && isMaker)) {
|
|
||||||
title = 'You have lost the dispute';
|
|
||||||
prompt = function () {
|
prompt = function () {
|
||||||
return <DisputeLoserPrompt />;
|
return <DisputeLoserPrompt />;
|
||||||
};
|
};
|
||||||
bondStatus = 'settled';
|
bondStatus = 'settled';
|
||||||
|
} else if ((status == 17 && !isMaker) || (status == 18 && isMaker)) {
|
||||||
|
title = 'You have lost the dispute';
|
||||||
|
prompt = function () {
|
||||||
|
return <DisputeWinnerPrompt />;
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
return { title, titleVariables, titleColor, prompt, bondStatus, titleIcon };
|
return { title, titleVariables, titleColor, prompt, bondStatus, titleIcon };
|
||||||
|
Reference in New Issue
Block a user