Skip to content

Commit

Permalink
Merge pull request #84 from openimis/hotfix/fix-sonar
Browse files Browse the repository at this point in the history
hotfix: fix sonar issue
  • Loading branch information
olewandowski1 authored Oct 29, 2024
2 parents a129db5 + bd01244 commit 6e5ef65
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/MPayBillButton.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ import { payWithMPay } from '../utils/utils';
function MPayBillButton({ bill }) {
const modulesManager = useModulesManager();

if (!bill || bill.status === BILL_PAID_STATUS) return null;

const { formatMessage } = useTranslations(MODULE_NAME, modulesManager);

if (!bill || bill.status === BILL_PAID_STATUS) return null;

const handleOnClick = async (e) => {
e.preventDefault();
await payWithMPay(bill.id);
Expand Down

0 comments on commit 6e5ef65

Please sign in to comment.