Skip to content

Commit

Permalink
Fix jobDetails error on old Nim versions
Browse files Browse the repository at this point in the history
  • Loading branch information
zedeus committed Nov 25, 2023
1 parent 4dac9f0 commit d6be08d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/experimental/parser/unifiedcard.nim
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ proc parseMediaDetails(data: ComponentData; card: UnifiedCard; result: var Card)
proc parseJobDetails(data: ComponentData; card: UnifiedCard; result: var Card) =
data.destination.parseDestination(card, result)

result.kind = jobDetails
result.kind = CardKind.jobDetails
result.title = data.title
result.text = data.shortDescriptionText
result.dest = &"@{data.profileUser.username} · {data.location}"
Expand Down Expand Up @@ -93,7 +93,7 @@ proc parseUnifiedCard*(json: string): Card =
component.parseMedia(card, result)
of buttonGroup:
discard
of jobDetails:
of ComponentType.jobDetails:
component.data.parseJobDetails(card, result)
of ComponentType.hidden:
result.kind = CardKind.hidden
Expand Down

0 comments on commit d6be08d

Please sign in to comment.