mirror of
https://github.com/RoboSats/robosats.git
synced 2025-07-18 16:53:16 +00:00
Fix swap dispute prompts
This commit is contained in:
@ -15,7 +15,7 @@ const LinearDeterminate = ({ expiresAt, totalSecsExp }: Props): JSX.Element => {
|
||||
} else {
|
||||
return 100;
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
const [progress, setProgress] = useState<number>(timePercentLeft);
|
||||
|
||||
|
@ -603,15 +603,15 @@ const TradeBox = ({
|
||||
// 18: 'Taker lost dispute'
|
||||
} else if ((status == 17 && isMaker) || (status == 18 && !isMaker)) {
|
||||
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 () {
|
||||
return <DisputeLoserPrompt />;
|
||||
};
|
||||
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 };
|
||||
|
Reference in New Issue
Block a user