diff --git a/admin/themes/default/template/controllers/orders/helpers/view/view.tpl b/admin/themes/default/template/controllers/orders/helpers/view/view.tpl
index 74eb8d437..9f884e2b1 100644
--- a/admin/themes/default/template/controllers/orders/helpers/view/view.tpl
+++ b/admin/themes/default/template/controllers/orders/helpers/view/view.tpl
@@ -28,9 +28,9 @@
{block name=pageTitle}
{if is_array($title)}{$title|end|strip_tags}{else}{$title|strip_tags}{/if}
- {if $currentState == Configuration::get('PS_OS_REFUND')}
+ {if $currentState->id == Configuration::get('PS_OS_REFUND')}
{l s='Refunded'}
- {elseif $currentState == Configuration::get('PS_OS_CANCELED')}
+ {elseif $currentState->id == Configuration::get('PS_OS_CANCELED')}
{l s='Cancelled'}
{else}
{l s='Booked'}