Skip to content

Commit

Permalink
Fix minor type error
Browse files Browse the repository at this point in the history
  • Loading branch information
barshathakuri committed Nov 21, 2023
1 parent 0cc39d2 commit 47019ac
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
16 changes: 8 additions & 8 deletions src/views/DrefApplicationExport/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -112,12 +112,12 @@ export function Component() {
const lessonsLearnedDefined = isTruthyString(drefResponse?.lessons_learned?.trim());
const showPreviousOperations = drefResponse?.type_of_dref !== DREF_TYPE_ASSESSMENT && (
isDefined(drefResponse?.did_it_affect_same_area)
|| isDefined(drefResponse?.did_it_affect_same_population)
|| isDefined(drefResponse?.did_ns_respond)
|| isDefined(drefResponse?.did_ns_request_fund)
|| isTruthyString(drefResponse?.ns_request_text?.trim())
|| isTruthyString(drefResponse?.dref_recurrent_text?.trim())
|| lessonsLearnedDefined
|| isDefined(drefResponse?.did_it_affect_same_population)
|| isDefined(drefResponse?.did_ns_respond)
|| isDefined(drefResponse?.did_ns_request_fund)
|| isTruthyString(drefResponse?.ns_request_text?.trim())
|| isTruthyString(drefResponse?.dref_recurrent_text?.trim())
|| lessonsLearnedDefined
);

const ifrcActionsDefined = isTruthyString(drefResponse?.ifrc?.trim());
Expand Down Expand Up @@ -287,8 +287,8 @@ export function Component() {
value={drefResponse?.disaster_category_display}
valueClassName={_cs(
isDefined(drefResponse)
&& isDefined(drefResponse.disaster_category)
&& colorMap[drefResponse.disaster_category],
&& isDefined(drefResponse.disaster_category)
&& colorMap[drefResponse.disaster_category],
)}
strongValue
/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@
.learning-platform-link {
display: flex;
gap: var(--go-ui-spacing-2xs);
}
}
4 changes: 2 additions & 2 deletions src/views/DrefOperationalUpdateExport/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -283,8 +283,8 @@ export function Component() {
value={drefResponse?.disaster_category_display}
valueClassName={_cs(
isDefined(drefResponse)
&& isDefined(drefResponse.disaster_category)
&& colorMap[drefResponse.disaster_category],
&& isDefined(drefResponse.disaster_category)
&& colorMap[drefResponse.disaster_category],
)}
strongValue
/>
Expand Down

0 comments on commit 47019ac

Please sign in to comment.