Ver Fonte

rename vaiable

kaori há 4 anos atrás
pai
commit
e776d209c1

+ 2 - 2
packages/app/src/components/InAppNotification/InAppNotificationElm.tsx

@@ -79,10 +79,10 @@ const InAppNotificationElm = (props: Props): JSX.Element => {
   const actionUsers = getActionUsers();
   const actionUsers = getActionUsers();
   const pagePath = { path: props.notification.target.path };
   const pagePath = { path: props.notification.target.path };
 
 
-  const action: string = notification.action;
+  const actionType: string = notification.action;
   let actionMsg: string;
   let actionMsg: string;
 
 
-  switch (action) {
+  switch (actionType) {
     case 'PAGE_UPDATE':
     case 'PAGE_UPDATE':
       actionMsg = 'updated on';
       actionMsg = 'updated on';
       break;
       break;