<?xml version="1.0"?>
<!--
/**
 * Hyvä Themes - https://hyva.io
 * Copyright © Hyvä Themes 2022-present. All rights reserved.
 * This product is licensed per Magento install
 * See https://hyva.io/license
 */
-->
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xsi:noNamespaceSchemaLocation="urn:magento:framework:Event/etc/events.xsd"
>
    <event name="customer_address_delete_commit_after">
        <!-- Check if the current Quote address has an ID and remove the ID from it if it's the same as the subject -->
        <observer name="HyvaCheckoutCustomerAddressDeleteCommitAfter"
                  instance="Hyva\Checkout\Observer\HyvaCheckoutCustomerAddressDeleteCommitAfter"/>
    </event>
</config>
