mirror of
https://github.com/RoboSats/robosats.git
synced 2025-09-13 00:56:22 +00:00
Fix
This commit is contained in:
@ -90,7 +90,7 @@ const NotificationsDrawer = ({
|
|||||||
|
|
||||||
const playSound = (orderStatus: number) => {
|
const playSound = (orderStatus: number) => {
|
||||||
const soundByStatus: Record<number, 'takerFound' | 'ding' | 'successful'> = {
|
const soundByStatus: Record<number, 'takerFound' | 'ding' | 'successful'> = {
|
||||||
5: 'takerFound',
|
6: 'takerFound',
|
||||||
13: 'successful',
|
13: 'successful',
|
||||||
14: 'successful',
|
14: 'successful',
|
||||||
15: 'successful',
|
15: 'successful',
|
||||||
@ -115,7 +115,7 @@ const NotificationsDrawer = ({
|
|||||||
setSnakevent(event);
|
setSnakevent(event);
|
||||||
setOpenSnak(true);
|
setOpenSnak(true);
|
||||||
systemClient.setItem('last_notification', event.created_at.toString());
|
systemClient.setItem('last_notification', event.created_at.toString());
|
||||||
|
console.log(event);
|
||||||
const orderStatus = event.tags.find((t) => t[0] === 'status')?.[1];
|
const orderStatus = event.tags.find((t) => t[0] === 'status')?.[1];
|
||||||
if (orderStatus) playSound(parseInt(orderStatus, 10));
|
if (orderStatus) playSound(parseInt(orderStatus, 10));
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user