From b5beceff5f90b5fd579954ef757b26814c8a1837 Mon Sep 17 00:00:00 2001 From: keannu125 Date: Tue, 7 Mar 2023 22:22:04 +0800 Subject: [PATCH] Logs now shows user --- src/Interfaces/Interfaces.tsx | 6 ++---- src/Routes/Logs/Logs.tsx | 2 +- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/src/Interfaces/Interfaces.tsx b/src/Interfaces/Interfaces.tsx index d544f44..c831f44 100644 --- a/src/Interfaces/Interfaces.tsx +++ b/src/Interfaces/Interfaces.tsx @@ -20,8 +20,7 @@ export interface ProductLogEntry { name: string; quantity: string; history_date: string; - history_user_id: number; - changed_by: string; + history_user: string; }; } @@ -31,8 +30,7 @@ export interface ProductLog { name: string; quantity: string; history_date: string; - history_user_id: number; - changed_by: string; + history_user: string; } // Redux Interfaces diff --git a/src/Routes/Logs/Logs.tsx b/src/Routes/Logs/Logs.tsx index 59803e6..528671a 100644 --- a/src/Routes/Logs/Logs.tsx +++ b/src/Routes/Logs/Logs.tsx @@ -108,7 +108,7 @@ export default function Logs() { {row.quantity} - {row.changed_by} + {row.history_user} {row.history_date}