mirror of
https://github.com/pezkuwichain/pwap.git
synced 2026-04-22 22:57:55 +00:00
refactor: reorganize docs folder structure and update P2P plan
This commit is contained in:
@@ -44,6 +44,12 @@ export function TradeModal({ offer, onClose }: TradeModalProps) {
|
||||
return;
|
||||
}
|
||||
|
||||
// Prevent self-trading
|
||||
if (offer.seller_id === user.id) {
|
||||
toast.error('You cannot trade with your own offer');
|
||||
return;
|
||||
}
|
||||
|
||||
if (!isValidAmount) {
|
||||
toast.error('Invalid amount');
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user