diff --git a/lib/ui/invoice/view/invoice_view_vm.dart b/lib/ui/invoice/view/invoice_view_vm.dart index d8582dfc0..e033e4102 100644 --- a/lib/ui/invoice/view/invoice_view_vm.dart +++ b/lib/ui/invoice/view/invoice_view_vm.dart @@ -27,7 +27,6 @@ class InvoiceViewScreen extends StatelessWidget { @override Widget build(BuildContext context) { return StoreConnector( - distinct: true, converter: (Store store) { return InvoiceViewVM.fromStore(store); }, @@ -76,22 +75,6 @@ class EntityViewVM { final Function(BuildContext, String) onUploadDocument; final Function(BuildContext, DocumentEntity) onDeleteDocument; final Function(BuildContext, DocumentEntity) onViewExpense; - - @override - bool operator ==(dynamic other) => - client == other.client && - company == other.company && - invoice == other.invoice && - isSaving == other.isSaving && - isDirty == other.isDirty; - - @override - int get hashCode => - client.hashCode ^ - company.hashCode ^ - invoice.hashCode ^ - isSaving.hashCode ^ - isDirty.hashCode; } class InvoiceViewVM extends EntityViewVM {