Fix jobDetails error on old Nim versions
This commit is contained in:
parent
4dac9f0798
commit
d6be08d093
1 changed files with 2 additions and 2 deletions
|
@ -31,7 +31,7 @@ proc parseMediaDetails(data: ComponentData; card: UnifiedCard; result: var Card)
|
||||||
proc parseJobDetails(data: ComponentData; card: UnifiedCard; result: var Card) =
|
proc parseJobDetails(data: ComponentData; card: UnifiedCard; result: var Card) =
|
||||||
data.destination.parseDestination(card, result)
|
data.destination.parseDestination(card, result)
|
||||||
|
|
||||||
result.kind = jobDetails
|
result.kind = CardKind.jobDetails
|
||||||
result.title = data.title
|
result.title = data.title
|
||||||
result.text = data.shortDescriptionText
|
result.text = data.shortDescriptionText
|
||||||
result.dest = &"@{data.profileUser.username} · {data.location}"
|
result.dest = &"@{data.profileUser.username} · {data.location}"
|
||||||
|
@ -93,7 +93,7 @@ proc parseUnifiedCard*(json: string): Card =
|
||||||
component.parseMedia(card, result)
|
component.parseMedia(card, result)
|
||||||
of buttonGroup:
|
of buttonGroup:
|
||||||
discard
|
discard
|
||||||
of jobDetails:
|
of ComponentType.jobDetails:
|
||||||
component.data.parseJobDetails(card, result)
|
component.data.parseJobDetails(card, result)
|
||||||
of ComponentType.hidden:
|
of ComponentType.hidden:
|
||||||
result.kind = CardKind.hidden
|
result.kind = CardKind.hidden
|
||||||
|
|
Loading…
Reference in a new issue