Fix swap dispute prompts

This commit is contained in:
Reckless_Satoshi
2022-12-01 02:18:42 -08:00
parent cc87054246
commit a7ad9c8c7e
2 changed files with 9 additions and 9 deletions

View File

@ -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);

View File

@ -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 };