mirror of
https://github.com/darksaid98/new-phone-who-dis.git
synced 2026-12-04 14:38:45 +00:00
feat(Marketplace): minor alerts
This commit is contained in:
1 parent
283832f17e
commit
5244ff3a57
5 files changed
+33
-4
No files matched your search
@@ -62,9 +62,19 @@ onNet(events.SELLOUT_ADD_LISTING, async (listing: Listing) => {
|
||||
|
||||
const phoneNumber = await usePhoneNumber(_identifier);
|
||||
await addListing(_identifier, name, phoneNumber, listing);
|
||||
|
||||
emitNet(events.SELLOUT_ACTION_RESULT, _source, {
|
||||
message: 'MARKETPLACE_CREATE_LISTING_SUCCESS',
|
||||
type: 'success'
|
||||
})
|
||||
} catch (e) {
|
||||
selloutLogger.error(`Failed to add listing ${e.message}`, {
|
||||
source: _source,
|
||||
});
|
||||
|
||||
emitNet(events.SELLOUT_ACTION_RESULT, _source, {
|
||||
message: 'MARKETPALCE_CREATE_LISTING_FAILED',
|
||||
type: 'error'
|
||||
})
|
||||
}
|
||||
});
|
||||
Reference in new issue
Block a user