Skip to content

Commit

Permalink
refactor: remove default value assignment of Shabad properties
Browse files Browse the repository at this point in the history
  • Loading branch information
ManpreetSL authored and Harjot1Singh committed Jun 2, 2024
1 parent 6f015a1 commit 1f794b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/frontend/src/Controller/ShabadInfo.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ const ShabadInfo = () => {
// Icon changes when open
const barIcon = isPopoverOpen ? faTimesCircle : faInfoCircle

const { sourceId, writerId, section } = shabad || line?.shabad || { sourceId: '', writerId: '', section: '' }
const { sourceId, writerId, section } = shabad || line.shabad
const { nameEnglish: sectionName } = bani || section
const { id: lineId, sourcePage } = line

Expand Down

0 comments on commit 1f794b4

Please sign in to comment.