Skip to content

Commit 13976f1

Browse files
committed
Changed indicator for token expired
1 parent 6af87b0 commit 13976f1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/components/screen/screen-status.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ function ScreenStatus({ screen, handleInput = () => {}, mode = "default" }) {
110110
}, []);
111111

112112
if (mode === "minimal") {
113-
if (!status || status?.clientMeta?.tokenExpired) {
113+
if (!status) {
114114
return (
115115
<Button
116116
variant="outline-primary"
@@ -127,7 +127,7 @@ function ScreenStatus({ screen, handleInput = () => {}, mode = "default" }) {
127127
const latestRequest = dayjs(status.latestRequestDateTime);
128128
const inOneHour = dayjs().add(1, "hours");
129129

130-
if (latestRequest > inOneHour) {
130+
if (status?.clientMeta?.tokenExpired || latestRequest > inOneHour) {
131131
return (
132132
<FontAwesomeIcon icon={faExclamationCircle} className="text-danger" />
133133
);

0 commit comments

Comments
 (0)