Skip to content

Commit

Permalink
Update useLoadData.tsx
Browse files Browse the repository at this point in the history
  • Loading branch information
zlenner committed Feb 7, 2024
1 parent d36fb12 commit 2ea60d6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/hooks/useData/useLoadData.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ export const useLoadData = () => {
form33Constituency.Candidates.find(
(candidate) =>
candidate['symbol_url'] ===
'https://symbols.azaadvotes.com/' + row.symbolfile + '.png'
'https://symbols.azaadvote.com/' + row.symbolfile + '.png'
)

if (form33Constituency && !pti_candidate_from_form_33) {
Expand All @@ -89,20 +89,20 @@ export const useLoadData = () => {
candidate_name: row.Candidate,
candidate_symbol: {
text: row['Symbol'],
url: 'https://symbols.azaadvotes.com/' + row['symbolfile'] + '.png',
url: 'https://symbols.azaadvote.com/' + row['symbolfile'] + '.png',
symbolfile: row['symbolfile']
}
},
candidates: form33Constituency?.Candidates.map((candidate) => {
let pti_backed =
candidate.symbol_url ===
'https://symbols.azaadvotes.com/' + row.symbolfile + '.png'
'https://symbols.azaadvote.com/' + row.symbolfile + '.png'
// SPECIAL CASES

// Gohar Ali Khan NA-10 Buner
if (
row.Constituency === 'NA-10' &&
candidate.symbol_url === 'https://symbols.azaadvotes.com/teapot.png'
candidate.symbol_url === 'https://symbols.azaadvote.com/teapot.png'
) {
pti_backed = true
}
Expand Down

0 comments on commit 2ea60d6

Please sign in to comment.