Skip to content

Commit

Permalink
chore: nx format:write update dirty files
Browse files Browse the repository at this point in the history
  • Loading branch information
andes-it committed Oct 16, 2024
1 parent e766a58 commit 1faf57e
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,7 @@ export class ParliamentaryListCreationService extends BaseTemplateApiService {
return candidate
}

async parliamentaryCollection({
auth,
}: TemplateApiModuleActionProps) {
async parliamentaryCollection({ auth }: TemplateApiModuleActionProps) {
const currentCollection =
await this.signatureCollectionClientService.currentCollection()
if (currentCollection.collectionType !== CollectionType.Parliamentary) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@ import { defineTemplateApi } from '@island.is/application/types'

export const CandidateApi = defineTemplateApi({
action: 'candidate',
order: 0
order: 0,
})

export const ParliamentaryCollectionApi = defineTemplateApi({
action: 'parliamentaryCollection',
order: 1
order: 1,
})

export const ParliamentaryIdentityApi = defineTemplateApi({
action: 'parliamentaryIdentity',
order: 2
order: 2,
})
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@ export const errorMessages = {
},
summary: {
id: 'plc.application:error.alreadyCandidate.summary',
defaultMessage: 'Þú ert nú þegar með framboð. Þú getur nálgast nánari upplýsingar um þína meðmælasöfnun á Mínum Síðum.',
defaultMessage:
'Þú ert nú þegar með framboð. Þú getur nálgast nánari upplýsingar um þína meðmælasöfnun á Mínum Síðum.',
description: '',
},
}),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -367,8 +367,8 @@ export class SignatureCollectionClientService {
}

private async checkIfRemoveCandidate(id: string, auth: User) {
const { ownedLists, candidate} = await this.getSignee(auth)
if ((!ownedLists || (ownedLists.length === 0 )) && candidate?.id) {
const { ownedLists, candidate } = await this.getSignee(auth)
if ((!ownedLists || ownedLists.length === 0) && candidate?.id) {
await this.getApiWithAuth(this.candidateApi, auth).frambodIDDelete({
iD: parseInt(id),
})
Expand Down

0 comments on commit 1faf57e

Please sign in to comment.