diff --git a/frontend/src/app/shared/pipes/decimal2hex/decimal2hex.pipe.ts b/frontend/src/app/shared/pipes/decimal2hex/decimal2hex.pipe.ts index 3c99cec0d..6ccd4238b 100644 --- a/frontend/src/app/shared/pipes/decimal2hex/decimal2hex.pipe.ts +++ b/frontend/src/app/shared/pipes/decimal2hex/decimal2hex.pipe.ts @@ -5,6 +5,6 @@ import { Pipe, PipeTransform } from '@angular/core'; }) export class Decimal2HexPipe implements PipeTransform { transform(decimal: number): string { - return `0x` + decimal.toString(16); + return `0x` + ( decimal.toString(16) ).padStart(8, '0'); } }