fix: parse json string
MODIFY
src/app/components/policy-card/policy-card.component.ts
src/app/components/policy-card/policy-card.component.ts
@@ -38,7 +38,7 @@ export class PolicyCardComponent implements OnInit {
};
ngOnInit(): void {
- const config = JSON.parse(this.policy?.configuration);
+ const config = JSON.parse(<string>this.policy?.configuration);
const timeUnit = config.period;
let limit = '';

fix: parse json string