From b3a34c109afa2440c149b1d309fedb3f9bc93fbb Mon Sep 17 00:00:00 2001 From: Patrick Fic <> Date: Mon, 30 Aug 2021 15:20:08 -0700 Subject: [PATCH] IO-539 Fix hanging confirmation. --- .../jobs-available-table/jobs-available-table.container.jsx | 2 +- .../payments-export-all-button.component.jsx | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/client/src/components/jobs-available-table/jobs-available-table.container.jsx b/client/src/components/jobs-available-table/jobs-available-table.container.jsx index 8115e112d..134946530 100644 --- a/client/src/components/jobs-available-table/jobs-available-table.container.jsx +++ b/client/src/components/jobs-available-table/jobs-available-table.container.jsx @@ -429,6 +429,6 @@ function confirmDialog(msg) { return new Promise(function (resolve, reject) { let confirmed = window.confirm(msg); - return confirmed ? resolve(true) : reject(false); + return confirmed ? resolve(true) : resolve(false); }); } diff --git a/client/src/components/payments-export-all-button/payments-export-all-button.component.jsx b/client/src/components/payments-export-all-button/payments-export-all-button.component.jsx index d67472989..693a14339 100644 --- a/client/src/components/payments-export-all-button/payments-export-all-button.component.jsx +++ b/client/src/components/payments-export-all-button/payments-export-all-button.component.jsx @@ -6,7 +6,6 @@ import React, { useState } from "react"; import { useTranslation } from "react-i18next"; import { connect } from "react-redux"; import { createStructuredSelector } from "reselect"; -import { auth } from "../../firebase/firebase.utils"; import { INSERT_EXPORT_LOG } from "../../graphql/accounting.queries"; import { UPDATE_PAYMENTS } from "../../graphql/payments.queries"; import {