Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix group loan modal #754

Merged
merged 13 commits into from
Dec 27, 2023
Merged

Fix group loan modal #754

merged 13 commits into from
Dec 27, 2023

Conversation

Adamik10
Copy link
Contributor

@Adamik10 Adamik10 commented Dec 6, 2023

Link to issue

https://reload.atlassian.net/browse/DDFLSBP-295

Description

A couple of elements are removed from the group modal for loan fees.

Screenshot of the result

AFTER:
image

BEFORE:
image

Additional comments or questions

n/a

@JacobArrow JacobArrow self-requested a review December 6, 2023 15:52
Comment on lines 37 to +41
if (openDueDateModal && dueDate) {
openDueDateModal(dueDate);
return;
}
openLoanDetailsModal(loan);
Copy link
Contributor

@JacobArrow JacobArrow Dec 6, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This feels weird somehow
Why not just a regular if/else or just
(openDueDateModal && dueDate) ? openDueDateModal(dueDate) : openLoanDetailsModal(loan)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Because
image

Copy link
Contributor

@JacobArrow JacobArrow Dec 27, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Correct, but you can either return the whole statement or remove the curly braces

  const handleOpenDueDateModal = () =>
    openDueDateModal && dueDate
      ? openDueDateModal(dueDate)
      : openDueDateModal(dueDate);

OR

  const handleOpenDueDateModal = () => {
    return openDueDateModal && dueDate
      ? openDueDateModal(dueDate)
      : openDueDateModal(dueDate);
  };

JacobArrow
JacobArrow previously approved these changes Dec 6, 2023
Copy link
Contributor

@JacobArrow JacobArrow left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I had some thoughts, but other than that LGTM

When clicking on the title, two modals would open - one event triggered
by clicking the title on the card, and the other triggered by the card
itself.
@Adamik10 Adamik10 changed the title Open a loan modal when clicking on a non-stacked loan card Fix group loan modal Dec 27, 2023
@Adamik10 Adamik10 changed the base branch from release/2023-50-0 to release/2024-1-0 December 27, 2023 10:02
@Adamik10 Adamik10 marked this pull request as ready for review December 27, 2023 10:42
Copy link
Contributor

@JacobArrow JacobArrow left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice job!

@Adamik10 Adamik10 merged commit 7a4cb1e into release/2024-1-0 Dec 27, 2023
15 of 16 checks passed
@Adamik10 Adamik10 deleted the fix/group-loan-modal branch December 27, 2023 13:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants