Skip to content

Commit

Permalink
front: adapt stdcm debug when no margin
Browse files Browse the repository at this point in the history
  • Loading branch information
SharglutDev committed Jul 18, 2024
1 parent f7f1572 commit bc52bb6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion front/src/applications/stdcm/utils/createMargin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import type { StandardAllowance } from 'reducers/osrdconf/types';

export default function createMargin(margin: StandardAllowance | undefined): string {
if (!margin || !margin.value) {
return 'None';
return '0%';
}
switch (margin.type) {
case 'time_per_distance':
Expand Down

0 comments on commit bc52bb6

Please sign in to comment.