Skip to content

Commit 3a6ab20

Browse files
committed
Adds missing condition while loading
1 parent 5e97a5f commit 3a6ab20

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

web/frontend/src/pages/election/Show.tsx

+3-1
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,9 @@ const ElectionShow: FC = () => {
234234
<div className="py-4 pl-2 pb-8">
235235
<div className="font-bold uppercase text-lg text-gray-700 pb-2">{t('action')}</div>
236236
<div className="px-2">
237-
{DKGLoading && <LoadingButton>{t('actionLoading')}</LoadingButton>}{' '}
237+
{DKGLoading && ongoingAction === OngoingAction.None && (
238+
<LoadingButton>{t('actionLoading')}</LoadingButton>
239+
)}{' '}
238240
{(!DKGLoading || ongoingAction !== OngoingAction.None) && (
239241
<Action
240242
status={status}

0 commit comments

Comments
 (0)